import axios from 'axios';
import { req, reqPost } from './axiosFun';

// 商品列表
export const goodsList = (params) => { return reqPost("post", "/goods/list", params) };

// 商品添加
export const addGoods = (params) => { return reqPost("post", "/goods/add", params) };

// 商品详情
export const goodsDetail = (params) => { return reqPost("post", "/goods/detail", params) };

// 商品修改
export const updateGoods = (params) => { return reqPost("post", "/goods/put", params) };

// 类目列表
export const categoryList = () => { return reqPost("get", "/category/list") };

// 类目分页列表
export const categoryListByPage = (params) => { return reqPost("post", "/category/listByPage", params) };

// 类目添加、修改
export const addCategory = (params) => { return reqPost("post", "/category/add", params) };

// 类目修改
// export const updateCategory = (params) => { return reqPost("post", "/category/listByPage",params)};